package cn.ito.zjgsu.constant;

import java.util.HashMap;
import java.util.Map;

public class Mapping {
	public final static Map<String, String> financeMap = new HashMap<String, String>();
	public final static Map<String, String> authorizeMap = new HashMap<String, String>();
	public final static Map<String, String> examineMap = new HashMap<String, String>();
	public final static Map<String, String> sealMap = new HashMap<String, String>();
	public final static Map<String, String> archiveMap = new HashMap<String, String>();
	public final static Map<String, String> projectManageMap = new HashMap<String, String>();
	public final static Map<String, String> bidMap = new HashMap<String, String>();
	
	
	

	static {
		String columns[] = new String[] { "项目名称", "任务单编号", "承接部门", "承接人", "项目登记日期", "建设单位", "项目经费", "收款合计", "发票合计",
				"奖金合计", "学校结算额", "业务开支", "备注（资金）", "合同归属", "合同有无", "归档状态" };
		String[] jsons = new String[] { "projectName", "taskList", "departmentName", "undertakePersonName",
				"projectCreatetime", "construction", "projectMoney", "receiptSum", "billSum", "rewardSum",
				"schoolBalanceMoney", "hasserviceCost", "comment", "contractParty", "hascontract", "archived" };
		System.out.println( "finance" + (columns.length == jsons.length));
		if(columns.length == jsons.length){
			for (int i = 0; i < columns.length; i++) {
				financeMap.put(columns[i], jsons[i]);
			}

		}
		
		
		String[] undertakecolumns = new String[]{"项目登记日期","任务单编号","项目名称","项目类别","承接人","项目编制人员","项目负责人",
				"审核人员","责任表审核人","审批部门","审批日期","任务下达日期","审定日期","盖章日期","项目经费","收款合计","发票合计","奖金合计",
				"纸质归档状态","电子归档状态","合同有无","建设单位","备注（编制角色）"};
		String[] undertakeproperties = new String []{"projectCreatetime","taskListNumber","projectName","projectTypeName",
		"undertakePerson","authorizePerson","projectChargePerson","auditPerson","dutyExaminePerson","auditDepartment",
		"auditDatetime","issuedDate","examineDate","sealDate","projectMoney","totalReceipt","totalBill","totalReward",
		"isPaperArchive","isElectricArchive","hasContract","construction","authorizeRemark"};
		System.out.println( "authorizeMap" + (undertakecolumns.length == undertakeproperties.length));
		if(undertakecolumns.length == undertakeproperties.length){
			for (int i = 0; i < undertakecolumns.length; i++) {
				authorizeMap.put(undertakecolumns[i], undertakeproperties[i]);
			}
		}
		
		
		
		String[] examinecolumns = new String[]{
				"项目名称","项目类别","任务单编号","项目登记日期","合同日期","建设单位","承接人","项目编制人员","合同有无","审定人","审定日期",
				"盖章日期","是否纸质归档","是否电子归档"
		};
		String[] examineproperties = new String[]{
				"projectName","projectTypeName","taskListNumber","projectCreatetime","contractDatetime","construction",
				"undertakePerson","authorizePerson","hasContract","examinePerson","examineDate","sealDate","isPaperArchive","isElectricArchive"
		};
		System.out.println("examineMap"+(examinecolumns.length == examineproperties.length));
		if(examinecolumns.length == examineproperties.length){
			for (int i = 0; i < examinecolumns.length; i++) {
				examineMap.put(examinecolumns[i], examineproperties[i]);
			}
		}
		
		
		String[] sealcolumns = new String[]{
				"项目名称","建设单位","行业类别","项目类别","承接人","项目编制人员","合同有无","收款合计","审定状态","审定人","盖章经办人",
				"盖章日期","项目登记日期","审批日期","纸质归档日期","电子归档日期","任务单编号"
		};
		String[] sealproperties = new String[]{
				"projectName","construction","industryTypeName","projectTypeName","undertakePerson","authorizePerson",
				"hasContract","totalReceipt","isExamine","examinePerson","sealPerson","sealDatetime","projectCreatetime",
				"auditDatetime","archivePaperDatetime","archiveElectricDatetime","taskListNumber"
		};
		System.out.println("sealMap"+(sealcolumns.length == sealproperties.length));
		if(sealcolumns.length == sealproperties.length){
			for (int i = 0; i < sealcolumns.length; i++) {
				sealMap.put(sealcolumns[i], sealproperties[i]);
			}
		}
		
		
		String[] archivecolumns = new String[]{
				"纸质归档人","电子归档人","项目名称","项目类别","合同日期","合同有无","任务单编号","要求完成天数","实际完成工作日","完成部门",
				"项目编制人员","项目负责人","合同归属","审批部门","审批文号","审批时间","是否招投标","总投资","项目经费","电子版归档日期",
				"纸制版归档日期","盖章日期","备注"
		};
		String[] archiveproperties = new String[]{
				"archivePaperPerson","archiveElectricPerson","projectName","projectTypeName","contractDatetime","hasContract",
				"taskListNumber","needDateDeline","actualFinishDate","finishDep","authorizePerson","projectChargePerson",
				"contractParty","auditDepartment","auditNumber","auditDatetime","isBidProject","allInvestment","projectMoney",
				"archiveElectricDatetime","archivePaperDatetime","sealDatetime","archiveRemark"
		};
		System.out.println("archiveMap"+(archivecolumns.length == archiveproperties.length));
		if(archivecolumns.length == archiveproperties.length){
			for (int i = 0; i < sealcolumns.length; i++) {
				archiveMap.put(archivecolumns[i], archiveproperties[i]);
			}
		}
		
		
		String[] projectManagecolumns = new String[]{
				"项目名称","项目类别","任务单编号","项目登记日期","合同有无","完成部门","项目编制人员","项目经费","收款合计","发票合计",
				"奖金合计","业务开支","合同归属","外协费","所属地区","建设单位","合同日期","任务下达日期","审定日期","盖章日期","审批日期",
				"是否纸质归档","是否电子归档"
		};
		String[] projectManageproperties = new String[]{
				"projectName","projectTypeName","taskListNumber","projectCreatetime","hasContract","finishDep","authorizePerson",
				"projectMoney","totalReceipt","totalBill","totalReward","serviceFee","contractParty","outsourcingFee","address",
				"construction","contractDatetime","issuedDate","examineDate","sealDatetime","auditDatetime","isPaperArchive",
				"isElectricArchive"
		};
		System.out.println("projectManageMap"+(projectManagecolumns.length == projectManageproperties.length));
		if(projectManagecolumns.length == projectManageproperties.length){
			for (int i = 0; i < sealcolumns.length; i++) {
				projectManageMap.put(projectManagecolumns[i], projectManageproperties[i]);
			}
		}
		
		
		
		
		
		String[] bidcolumns = new String[]{
				"投标日期","项目类别","建设单位","项目名称","所属地区","投标报价","委托招标交易平台","承接部门","承接人员","完成部门",
				"项目编制人员","盖章日期"
		};
		String[] bidproperties = new String[]{
				"bidDate","projectTypeName","construction","projectName","address","bidPrice","bidPlatform","undertakeDep",
				"undertakePerson","finishDep","authorizePerson","sealDatetime"
		};
		System.out.println("bidMap"+(bidcolumns.length == bidproperties.length));
		if(projectManagecolumns.length == projectManageproperties.length){
			for (int i = 0; i < bidcolumns.length; i++) {
				bidMap.put(bidcolumns[i], bidproperties[i]);
			}
		}
		
	}
	
	
}
